package com.xwj.service;

import com.xwj.client.AuthServiceClient;
import com.xwj.dto.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xwj
 * @date 2020/6/16
 */
@Service
public class UserService {
    @Autowired
    private AuthServiceClient authServiceClient;

    /**
     * 登录
     *
     * @param username
     * @param password
     * @return
     */
    public Object login(String username, String password) {
        return authServiceClient.login("auth-service", "123456", "password", username, password);
    }
}
